package com.ddwl.schema.bo.wallet;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;


@Getter
@Setter
@ApiModel("新增提现渠道")
public class WithdrawChannelAddBo {


    @ApiModelProperty(value = "用户ID",hidden = true)
    private String userId;

    @NotNull
    @ApiModelProperty(value = "真实姓名",required = true)
    private String realName;

    @Pattern(regexp = "^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$")
    @ApiModelProperty(value = "身份证号",required = true)
    private String idcard;


    @ApiModelProperty(value = "门店id")
    private String shopId;

    @NotNull
    @ApiModelProperty(value = "类型0微信1支付宝2银行卡",required = true)
    private Integer type;

    @ApiModelProperty(value = "银行名称")
    private String bankName;

    @ApiModelProperty(value = "银行code")
    private String bankCode;

    @ApiModelProperty(value = "微信对应的开户行编号")
    private String wxCode;

    @NotEmpty(message = "账号不能为空")
    @ApiModelProperty(value = "openId或卡号或账号")
    private String account;


    @ApiModelProperty("开户行地址")
    private String bankAddress;


    @Pattern(regexp = "^1\\d{10}$",message = "请输入正确的手机号")
    @ApiModelProperty(value = "绑定手机号")
    private String mobile;

}
